package com.xja.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.xja.mapper.RolesMenuMapper;
import com.xja.entity.RolesMenu;
import com.xja.service.RolesMenuService;
@Service
public class RolesMenuServiceImpl implements RolesMenuService{

    @Resource
    private RolesMenuMapper rolesMenuMapper;

    @Override
    public int deleteByPrimaryKey(Integer roles,Integer menus) {
        return rolesMenuMapper.deleteByPrimaryKey(roles,menus);
    }

    @Override
    public int insert(RolesMenu record) {
        return rolesMenuMapper.insert(record);
    }

    @Override
    public int insertSelective(RolesMenu record) {
        return rolesMenuMapper.insertSelective(record);
    }

}
